<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="WEB-INF/pages/base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
    <script src="${ctx}/plugins/jQuery/jquery-2.2.3.min.js"></script>
</head>

<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
<section class="content-header">
    <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
        <thead>
        <tr>
            <th class="sorting">用户</th>
            <th class="sorting">留言</th>
        </tr>
        </thead>
        <tbody>
            <tr>
                <td>小明</td>
                <td>真棒啊！</td>
            </tr>
            <tr>

                <td>小红</td>
                <td>一切随缘！</td>
            </tr>
        <c:forEach items="${userList}" var="o" varStatus="status">
            <tr>

                <td>${o.userName}</td>
                <td>${o.reMark}</td>
            </tr>
        </c:forEach>
        </tbody>

    </table>

    
        <div style="text-align:center;margin-top:140px">
    <h1 >请留言</h1>
   <form action="/addLeave.do" method="post">
  			<table style="margin-left: 37%" border="1">
  			<caption>填写留言信息</caption>
                <tr>
                    <td>匿名名称</td>
                    <td><input name="userName" type="text"></td>
                </tr>
  			<tr><td>留言内容</td>
  				<td><textarea name="reMark" rows="5" cols="35"></textarea></td>
			</tr>
  			</table>
  		<input type="submit" value="提交"/>
  		<input type="reset" value="重置"/>
  	</form>
    <a  href="/home.do">返回首页</a>
    </div>






</section>
</div>
</body>

</html>